﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BPMN.Domain.Entity.Material
{
    [Table("Material")]
    public class Material : Audit
    {
        /// <summary>
        /// 物料id
        /// </summary>
        [Key]
        public int MId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MEncode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string MModelType { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public int MUnit { get; set; }
        /// <summary>
        /// 物料/产品分类
        /// </summary>
        public int Mproducts { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool MYesNoEnable { get; set; } = true;
        /// <summary>
        /// 安全库存
        /// </summary>
        public bool MSafetyStock { get; set; } = true;
        /// <summary>
        /// 备注
        /// </summary>
        public string MRemark { get; set; }
    }
}
